package cn.wolfcode.trip.base.util;

import lombok.Getter;
import lombok.Setter;

@Getter
public class JSONResult {

    private boolean success = true;
    private String msg;
    //顺带当前请求一起响应的数据
    @Setter
    private Object data;

    //只有发送错误才会调用
    public JSONResult mark(String msg) {
        success= false;
        this.msg = msg;
        return this;
    }
}
